package com.yuanrui.auth.common.entity;

import lombok.Setter;

/**
 * 分页请求实体
 */
@Setter
public class PageInfo {
    private Integer pageNo=1;

    private Integer pageSize=10;

    public int getPageNo() {
        if (pageNo == null || pageNo <= 0) {
            return 1;
        }
        return pageNo;
    }

    public Integer getPageSize() {
        if (pageSize == null || pageSize <= 0) {
            return 20;
        }
        return pageSize;
    }
}
